import 'package:flutter/cupertino.dart';

class NavigationIconView {
  // item
  final BottomNavigationBarItem item;

  // 标题
  final String title;

  // 未选中颜色
  final String iconPath;

  // 选中颜色
  final String activeIconPath;

  NavigationIconView(
      {@required this.title,
      @required this.iconPath,
      @required this.activeIconPath})
      : item = BottomNavigationBarItem(
            icon: Image.asset(
              iconPath,
              width: 20.0,
              height: 20.0,
            ),
            activeIcon: Image.asset(
              activeIconPath,
              width: 20.0,
              height: 20.0,
            ),
            /*label: title*/);
}
